f1 = open('./a.txt',mode='r',encoding='utf-8')
f2 = open('./b.txt',mode='w',encoding='utf-8')

for line in f1:
    f2.write(line)

f2.flush()

f1.close()
f2.close()